package fxy;


public enum Operation {
	PLUS("+"){
		@Override
		double apply(double x, double y) {
			return 0;
		}
	},
	MINUS("-"){
		double apply(double x, double y){
			return x - y;
		}
	};
	private String symbol;
	private Operation(String symbol) {
		this.symbol = symbol;
	}
	abstract double apply(double x,double y);
	
    @Override
    public String toString() {
    	return symbol;
    }
    public static void main(String []args){
		System.out.println(Operation.MINUS);
		System.out.println(Operation.valueOf("PLUS"));
	}
}
//class Main{
//	public static void main(String []args){
//		System.out.println(Operation.MINUS);
//	}
//}